[APS-19435] fix: bump commons-io 1.3.2 -> 2.18.0 (CVE-2021-29425)#20
Open
Rohannagariya1 wants to merge 1 commit into
Open
[APS-19435] fix: bump commons-io 1.3.2 -> 2.18.0 (CVE-2021-29425)#20Rohannagariya1 wants to merge 1 commit into
Rohannagariya1 wants to merge 1 commit into
Conversation
- Clears CVE-2021-29425 (CWE-22 path traversal in FilenameUtils.normalize, affecting commons-io < 2.7). 2.18.0 is well past the patched 2.7. - Declared-only dependency: no FilenameUtils/FileUtils/IOUtils call sites in src/, so the bump is statically safe (no API surface changes used). Resolves: APS-19435 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security Fix: APS-19435
Issue
build.gradle:9declaredcommons-io:commons-io:1.3.2, which carries CVE-2021-29425 (CWE-22, path traversal inFilenameUtils.normalizeon commons-io < 2.7). Severity Low — the verifier flagged it as a declared-only dependency with no confirmed call sites.Root Cause
A very old (2008-era) commons-io 1.3.2 pinned on the compile classpath.
Fix Applied
One-line bump:
2.18.0 is a current stable 2.x (Maven Central latest is 2.22.0) and well past the patched 2.7. Verified the version exists on Maven Central (
commons-io-2.18.0.pom-> HTTP 200).Reachability / safety
Independently confirmed there are no
commons-io/FilenameUtils/FileUtils/IOUtilsreferences anywhere undersrc/(only three test classes, none import commons-io). The dependency is declared-only, so the major-version bump is statically safe — no used API surface changes between 1.3.2 and 2.18.0 in this repo.Testing
gradlew) and no systemgradleis available in the environment, so./gradlew dependencies --configuration compileClasspathand the sample test could not be executed here. The change is statically safe per the above; recommend CI/maintainer run./gradlew dependencies | grep commons-ioto confirm 2.18.0 resolves and no transitive re-introduces 1.3.2.Jira Ticket
https://browserstack.atlassian.net/browse/APS-19435
Checklist